package mysql

import "gorm.io/gorm"

type Person struct {
	gorm.Model
	Username    string `gorm:"type:char(11);not null;comment:'账号'"`
	Password    string `gorm:"type:char(32);not null;comment:'密码'"`
	Name        string `gorm:"type:varchar(3);not null;comment:'姓名'"`
	Marry       string `gorm:"type:enum('是','否');not null;comment:'婚配'"`
	Avatar      string `gorm:"type:varchar(300);not null;comment:'身份证图片'"`
	Certificate string `gorm:"type:varchar(20);not null;comment:'证件号码'"`
	Gender      string `gorm:"type:enum('男','女');not null;comment:'性别'"`
	DateBirth   string `gorm:"type:time;not null;comment:'出生日期'"`
	Mobile      string `gorm:"type:char(11);not null;comment:'手机号'"`
}
